package com.xbs.service.selfdriving;

import java.util.List;

import com.xbs.dao.conn.ParamSet;
import com.xbs.dao.selfdriving.CarManageDao;
import com.xbs.entity.CarManageEntity;

/**
 * 后台普通车辆管理业务处理类
 * @author Administrator
 *
 */
public class CarManageService {
	
	private CarManageDao carManageDao;
	
	public CarManageService(){
		carManageDao = new CarManageDao();
	}
	
	/**
	 * 1.查询所有车辆信息
	 * @return
	 */
	public List<CarManageEntity> selAll(){
		return carManageDao.selAll();
	}
	
	/**
	 * 2.根据车牌号查询车辆信息
	 * @return
	 */
	public List<CarManageEntity> selAll1(String carid){
		return carManageDao.selAll1(carid);
	}
	
	/**
	 * 3.根据车型编号查询详细信息
	 * @return
	 */
	public List<CarManageEntity> selAll2(String carmodelid){
		return carManageDao.selAll2(carmodelid);
	}
	
	/**
	 * 3.查询车型编号
	 * @return
	 */
	public List<CarManageEntity> select1(){
		return carManageDao.select1();
	}
	
	/**
	 * 3.查询门店编号
	 * @return
	 */
	public List<CarManageEntity> select2(){
		return carManageDao.select2();
	}
	
	/**
	 * 4.根据车牌号删除车辆信息
	 * @return
	 */
	public int delete(String carid){
		return carManageDao.delete(carid);
	}
	
	/**
	 * 5.添加车辆信息
	 * @return
	 */
	public int insert1(String carid, String modelid, String type, int storeid){
		return carManageDao.insert1(carid, modelid, type, storeid);
	}
	
	/**
	 * 4.根据车牌号修改车辆信息
	 * @return
	 */
	public int update(String carid, String modelid, String type, int storeid, String carid1){
		return carManageDao.update(carid, modelid, type, storeid, carid1);
	}
}
